<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>box-sizeof属性</title>
    <style type="text/css">
.box1{
    width: 300px;
    height: 100px;
    padding-right: 10px;
    margin-right: 10px;
    background: #F90;
    border: 10px solid#eec;

    box-sizing: content-box;

}
.box2{
    width: 300px;
    height: 100px;
    padding-right: 10px;
    margin-right: 10px;
    background: #F90;
    border: 10px solid#eec;

    box-sizing: border-box;

}


    </style>
</head>
<body>
    <div class="box1">content-box属性</div>
    <div class="box2">border-box属性</div>
</body>
</html>